 <div class="header">
    <h1 class="page-title">店面列表</h1>
</div>
<ul class="breadcrumb">
    <li><a ui-sref="main">Home</a> <span class="divider">/</span></li>
    <li class="active">Index</li>
</ul>


<div class="container-fluid">
<div class="row-fluid">
  <div class="btn-toolbar">
            <button ui-sref="shop_add" type="button" class="btn btn-primary"><i class="icon-plus"></i>添加店面</button>
        </div>
  <div class="well">
 <table class="table">
      <thead>
        <tr>
          <th>ID</th>
          <th>文章标题</th>
          <th>所属地区</th>
          <th>联系电话</th>
          <th>操作</th>
          <th style="width: 26px;"></th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="item in shop_list">
          <td>{{item.shop_id}}</td>
          <td>{{item.shop_name}}</td>
          <td>{{item.region_name}}</td>
          <td>{{item.shop_phone}}</td>
          <td> 
          <!--  ui-sref 去到路由模板页 -->
              <a ui-sref="shop_edite({shop_id:item.shop_id})"><i class="icon-pencil"></i></a>

              <a ui-sref="shop_delete({shop_id:item.shop_id})"><i class="icon-remove"></i></a>
               


               <!-- <a href="#myModal" role="button" ng-click="deleteFood(item.art_id)" data-toggle="modal"><i class="icon-remove"></i></a> -->

          </td>
        </tr>
    
      </tbody>
    </table>
</div>

    <div class="pagination">
            <ul uib-pagination total-items="totalItems" ng-model="currentPage" items-per-page="bigTotalItems" max-size="maxSize" ng-change="pageChanged()"></ul>
  </div>

   <div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Delete Confirmation</h3>
            </div>

            <div class="modal-body">
                <p class="error-text"><i class="icon-warning-sign modal-icon"></i>Are you sure you want to delete the user?</p>
            </div>
           <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
                <button type="button" ui-sref="shop_delete({'shop_id':shop_id})" class="btn btn-danger" data-dismiss="modal">Delete</button>
            </div>

        </div>

        <footer>
            <hr>
            <p>&copy; 2017 <a href="#" target="_blank">copyright</a></p>
        </footer>

</div>
</div>